package com.hethongviet.preventingmachine.models;

public class Relay extends Sensor
{
	private boolean isOn = false;
	
	public Relay()
	{
		super();
	}
	
	public Relay(String name, int index, boolean isOn)
	{
		super(name, index);
		setOn(isOn);
	}
	
	public boolean isOn()
	{
		return isOn;
	}

	public void setOn(boolean isOn)
	{
		this.isOn = isOn;
	}

	
}
